package com.mysteel.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mysteel.common.utils.PageUtils;
import com.mysteel.product.entity.CategoryEntity;
import com.mysteel.product.vo.web.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xc
 * @email xcremote@163.com
 * @date 2020-12-10 16:50:04
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> ids);

    Long[] findCategoryPathById(Long catelogId);

    void updateCascade(CategoryEntity category);

    /**
     * 获取一级分类信息
     * @return
     */
    List<CategoryEntity> getLevel1Category();

    /**
     * 返回二三级频道的信息
     * @return
     */
    Map<String, List<Catalog2Vo>> getCatalogJson();
}

